﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using SelfService.Model.Models;


namespace SelfService.ViewModel.SysClientVMs
{
    public partial class SysClientTemplateVM : BaseTemplateVM
    {
        [Display(Name = "名称")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.Name);
        [Display(Name = "编码")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.Code);
        [Display(Name = "位置")]
        public ExcelPropety Address_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.Address);
        [Display(Name = "IP")]
        public ExcelPropety Ip_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.Ip);
        [Display(Name = "Mac地址")]
        public ExcelPropety MacAddress_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.MacAddress);
        [Display(Name = "版本号")]
        public ExcelPropety Version_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.Version);
        [Display(Name = "开启更新")]
        public ExcelPropety IsUpdate_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.IsUpdate);
        [Display(Name = "最后通讯时间")]
        public ExcelPropety LastTime_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.LastTime);
        [Display(Name = "登录时间")]
        public ExcelPropety LoginTime_Excel = ExcelPropety.CreateProperty<SysClient>(x => x.LoginTime);

	    protected override void InitVM()
        {
        }

    }

    public class SysClientImportVM : BaseImportVM<SysClientTemplateVM, SysClient>
    {

    }

}
